import request from '@/utils/request'

// 查询项目立项列表
export function listProjectApproval(query) {
  return request({
    url: '/gs/projectApproval/list',
    method: 'get',
    params: query
  })
}

// 查询项目立项详细
export function getProjectApproval(id) {
  return request({
    url: '/gs/projectApproval/' + id,
    method: 'get'
  })
}

// 新增项目立项
export function addProjectApproval(data) {
  return request({
    url: '/gs/projectApproval',
    method: 'post',
    data: data
  })
}

// 修改项目立项
export function updateProjectApproval(data) {
  return request({
    url: '/gs/projectApproval',
    method: 'put',
    data: data
  })
}

// 删除项目立项
export function delProjectApproval(id) {
  return request({
    url: '/gs/projectApproval/' + id,
    method: 'delete'
  })
}
// 审核下发项目立项
export function auditProjectApproval(id) {
  return request({
    url: '/gs/projectApproval/auditProjectApproval/' + id,
    method: 'post'
  })
}
